//
//  PlanPeopleNewCell.m
//  WanCaiC8
//
//  Created by tangang on 2018/5/3.
//  Copyright © 2018年 tangang. All rights reserved.
//

#import "PlanPeopleNewCell.h"

@implementation PlanPeopleNewCell{
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle=UITableViewCellSeparatorStyleNone;
        self.labTitle=[[QXLable alloc]init];
        self.labTitle.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.labTitle];
        [self.labTitle mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView);
            make.top.equalTo(self.contentView).with.offset(10);
            make.bottom.equalTo(self.contentView).with.offset(-10);
            make.width.mas_equalTo(@100);
        }];
        
        UIView *line=[[UIView alloc]init];
        line.backgroundColor=DEFAULTLINECOLOR;
        [self.contentView addSubview:line];
        [line mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView);
            make.left.equalTo(self.contentView).with.offset(100);
            make.width.mas_equalTo(@.7);
            make.bottom.equalTo(self.contentView);
        }];
        
        self.labContent=[[QXLable alloc]init];
        self.labContent.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.labContent];
        [self.labContent mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(line);
            make.right.equalTo(self.contentView);
            make.centerY.equalTo(self.labTitle);
        }];
        
        UIView *line2=[[UIView alloc]init];
        line2.backgroundColor=DEFAULTLINECOLOR;
        [self.contentView addSubview:line2];
        [line2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.bottom.equalTo(self.contentView);
            make.height.mas_equalTo(@.7);
        }];
    }
    return self;
}

@end
